
import Vue from 'vue'
import App from './App.vue'
import router from './router'

const createApp =  (ssrContext) => {
    const app = new Vue({
        router,
        ssrContext,
        render: h => h(App)
    })
    // 返回 app 和 router
    return { app, router }
}
export default createApp
